<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>userList</title>
    <link rel="stylesheet" th:href="@{/static/css/bootstrap.css}"></link>
</head>
<body class="container">
<br/>
<h1>数据列表</h1>
<br/><br/>
<div class="with:80%">
    <table class="table table-hover" style="border: #2e6da4">
        <thead>
        <tr>
            <th>#</th>
            <th>name</th>
            <th>age</th>
            <th>mobile</th>
            <th>email</th>
            <th>address</th>
        </tr>
        </thead>
        <tbody>
        <tr  th:each="item : ${list}">
            <th scope="row" th:text="${item.id}"></th>
            <td th:text="${item.name}"></td>
            <td th:text="${item.age}"></td>
            <td th:text="${item.mobile}"></td>
            <td th:text="${item.email}"></td>
            <td th:text="${item.address}"></td>
        </tr>
        </tbody>
    </table>
</div>
</body>
</html>